
<?php

include_once ($_SERVER['DOCUMENT_ROOT'].'/../application/models/users/users.php');

if(isset($_GET['action']))
	$action=$_GET['action'];
else
	$action='select';

switch($action)
{
	
	case 'update':
		//Los Datos
	case 'insert':
		// El formulario
		include_once ($_SERVER['DOCUMENT_ROOT'].'/../application/views/scripts/users/insert.php');
	break;
	case 'delete':
		echo "Estoy en delete";
	break;
	case 'select':	
	default:		
		$data=getUsers();
		
		include_once ($_SERVER['DOCUMENT_ROOT'].'/../application/views/scripts/users/select.php');		
	break;
}